public class Cana {
	/** Memoreaza cantitatea de apa din prima galeata */
	protected int x;
	
	/** Memoreaza cantitatea de apa din a doua galeata */
	protected int y;
	
	public Cana(int x, int y) {
		this.x = x;
		this.y = y;
		}
	public int getX() {
		return x;
		}
	public void setX(int x) {
		this.x = x;
		}
	public int getY() {
		return y;
		}
	public void setY(int y) {
		this.y = y;
		}
	public String toString(){
		return "Starea : Cana1 :"+x+" litri, Cana2 "+y+" litri";
		}
	public boolean equals(Cana a){
		boolean r=false;
		if(a.x==this.x && a.y==this.y)
			r=true;
		return r;
		}
}